package net.bwie.realtime.jtp.dws.log.util;

import com.huaban.analysis.jieba.JiebaSegmenter;
import com.huaban.analysis.jieba.SegToken;

import java.util.List;
import java.util.stream.Collectors;

public  class JiebaUtil {

    public static List<String> jiebaAnalyzer(String content) {
        JiebaSegmenter jiebaSegmenter = new JiebaSegmenter();
        List<String> strings = jiebaSegmenter.sentenceProcess(content);
        return strings;
    }
    public static void main(String[] args) {


        String test_txt="我是一个酒精过敏的帅哥，我的酒品暴差,但我就是爱喝！";

        List<String> strings = jiebaAnalyzer(test_txt);
        strings.forEach(System.out::println);



    }
}
